﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid umu-container has-umu-sidemenu">
    <div class="umu-breadcrumb">
      <div class="breadcrumb">项目学员报表</div>
    </div>
    

    <div class="panel-default beast-panel beast-panel-layout">

      <div class="panel-body">

        <div class="col-xs-12 beast-panel-layout-right">

              <div class="ms-content-layout">
              <div class="ms-operation-bar no-margin no-bottom-border clearfix">
                <div class="ms-operation-group pull-right">
                  <a href="${ctx.host}/reports/project-trainee-feiren-report-export?${queryString}" class="btn btn-shadow-success btn-shadow umu-btn" <c:if test="${recordCount==null || recordCount<1 }">disabled</c:if>>
                    <i class="glyphicon glyphicon-send"></i>&nbsp;&nbsp;导出
                  </a>
                </div>
              </div>            
              <table class="table table-hover umu-table tab-pane table-striped">
                <thead>
                  <tr>
                    <th>项目编号</th>
                    <th>项目分类</th>
                    <th>培训项目名称</th>
                    <th>学员姓名</th>
                    <th>工号</th>
                    <th>邮箱</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                    <th>是否结业</th>
                    <th>是否补考</th>
                    <th>最终成绩</th>
                    <th>缺勤天数</th>
                    <th>备注</th>
                    <th>现场笔试成绩</th>
                    <th>面试官认证次数</th>
                    <th>面试官认证</th>
                    <th>辅导师认证次数</th>
                    <th>辅导师认证</th>
                    <th>是否种子</th>
                  </tr>
                </thead>
                
                <tbody>
                    <c:forEach items="${projectTrainees}" var="projectTrainee">
                        <tr>
                          <td>${projectTrainee.project.code}</td>
                          <td>${projectTrainee.project.firstCategory.name}-${projectTrainee.project.secondCategory.name}</td>
                          <td>${projectTrainee.project.name}</td>
                          <td>${projectTrainee.trainee.name}</td>
                          <td>${projectTrainee.trainee.code}</td>
                          <td>${projectTrainee.trainee.email}</td>
                          <td><fmt:formatDate value="${projectTrainee.project.beginDate}" pattern="yyyy-MM-dd"/></td>
                          <td><fmt:formatDate value="${projectTrainee.project.endDate}" pattern="yyyy-MM-dd"/></td>
                          <td><c:choose><c:when test="${projectTrainee.complete == false || projectTrainee.complete == null}">否</c:when><c:otherwise>是</c:otherwise></c:choose></td>
                          <td><c:choose><c:when test="${projectTrainee.resit == false || projectTrainee.complete == null}">否</c:when><c:otherwise>是</c:otherwise></c:choose></td>
                          <td>${projectTrainee.score}</td>
                          <td>${projectTrainee.absence}</td>
                          <td>${projectTrainee.comment}</td>
                          <td>${projectTrainee.spotScore}</td>
                          <td>${projectTrainee.interview}</td>
                          <td>${projectTrainee.interviewTimes}</td>
                          <td>${projectTrainee.counselorTimes}</td>
                          <td>${projectTrainee.counselor}</td>
                          <td>${projectTrainee.seed}</td>
                        </tr>
                      </c:forEach>                
                     
                </tbody>
                <tfoot>
                  <tr>
                    <td colspan="18" class="no-vertical-padding">
                      <div class="pull-left">
                        <jsp:include page="/WEB-INF/include/page.jsp">
                          <jsp:param name="url" value="${ctx.host}/project-trainees" />
                          <jsp:param name="queryString" value="${queryString}" />
                        </jsp:include>
                      </div>
                    </td>
                  </tr>
                </tfoot>
                </table>
            </div>
        </div>

      </div>

    </div>

  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>

</body>
</html>